<div class="pageContent">

	<form method="post" action="<?php echo Yii::app()->createUrl('goods/add');?>" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone)">
		<div class="pageFormContent" layoutH="58">
			<div class="tabs" currentIndex="0" eventType="click">
				<div class="tabsHeader">
					<div class="tabsHeaderContent">
						<ul>
							<li><a href="javascript:;"><span>商品基本信息</span></a></li>
							<li><a href="javascript:;"><span>商品详情信息</span></a></li>
						</ul>
					</div>
				</div>
				<div class="tabsContent" layoutH="97">
					<!--商品基本信息-->
					<div>
						<div class="unit">
							<label>商品名称：</label>
							<input type="text" name="dataForm[goods_name]" maxlength="30" class="required" errormsg="请输入商品名称" value=""/>
						</div>
						<div class="unit">
							<label>商品副标题：</label>
							<input type="text" name="dataForm[goods_sub]" maxlength="30" class="required" errormsg="请输入商品副标题" value=""/>
						</div>
						<div class="unit">
							<label>商品主题：</label>
							<select class="combox" name="dataForm[theme_id]">
								<option value="0">所有</option>
								<option value="1">主题旅行</option>
								<option value="2">自由行</option>
							</select>
						</div>
						<div class="unit">
							<label>商品分类：</label>
							<select class="combox" name="dataForm[goods_category_id]">
								<?php foreach($list as $value){?>
								<option value="<?php echo $value['goods_category_id']?>"><?php echo $value['name']?></option>
								<?php }?>
							</select>
						</div>
						<div class="unit">
							<label>商品单价：</label>
							<input type="text" name="dataForm[price]" class="number required" errormsg="请输入商品单价" value=""/>
						</div>
						<div class="unit">
							<label>计量单位：</label>
							<input type="text" name="dataForm[unit]" class="required" errormsg="请输入计量单位" value=""/>
						</div>
						<div class="unit">
							<label>排序：</label>
							<input type="text" name="dataForm[sort]" class="digits required" errormsg="请输入排序(整数)" value="1"/>
							<span class="info">&nbsp;&nbsp;数字越大越靠前</span>
						</div>
						<div class="unit">
							<label>是否显示：</label>
							<label><input type="radio" name="dataForm[is_show]" value="0" checked/>显示</label>
							<label><input type="radio" name="dataForm[is_show]" value="1"/>隐藏</label>
						</div>
						<div class="unit">
							<dl>
								<label>商品图片：</label>
								<dd>
									<input type="file" id="uploadify1" class="input-xlarge" name="uploadify" style="margin-left:100px;">	
									<input type="hidden" id="ad_img_path1" name="dataForm[image]" class="required" value="" errormsg="请选择上传的图片">
								</dd>
							</dl>
						</div>
						<br/><br/>
						<div class="unit" id="image_play1" style="display:none">
							<br/><br/>
							<dl>
								<label>预览图片：</label>
								<dd>
									<div style="width:560px;height:200px;float:left;margin-left:10px;">
									<div style="width:460px;height:200px;float:left;">
									<img style="width:100%;height:100%" src="/files/images/not-set.jpg">
									</div>&nbsp;
									<span id="delbutton1"  style="cursor: pointer; color: red; margin-left: 2px; width: 50px; float: left;" alt="删除" title="删除">[ 删除 ]</span>
									</div>
								</dd>
							</dl>
							<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
						</div>
						<div class="unit">
							<dl>
								<label>详情图片：</label>
								<dd>
									<input type="file" id="uploadify2" class="input-xlarge" name="uploadify" style="margin-left:100px;">	
									<input type="hidden" id="ad_img_path2" name="dataForm[detail_image]" class="required" value="" errormsg="请选择上传的图片">
								</dd>
							</dl>
						</div>
						<br/><br/>
						<div class="unit" id="image_play2" style="display:none">
							<br/><br/>
							<dl>
								<label>图片预览：</label>
								<dd>
									<div style="width:560px;height:200px;float:left;margin-left:10px;">
									<div style="width:460px;height:200px;float:left;">
									<img style="width:100%;height:100%" src="/files/images/not-set.jpg">
									</div>&nbsp;
									<span id="delbutton2"  style="cursor: pointer; color: red; margin-left: 2px; width: 50px; float: left;" alt="删除" title="删除">[ 删除 ]</span>
									</div>
								</dd>
							</dl>
							<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
						</div>
					</div>
					<!--商品详细信息-->
					<div>
						<div class="unit">
							<label>商品简介：</label>
							<textarea class="editor" name="dataForm[goods_intro]" rows="80" cols="80"
										upLinkUrl="<?php echo Yii::app()->createUrl("UploadFile/EditorUpload");?>" upLinkExt="zip,rar,txt" 
										upImgUrl="<?php echo Yii::app()->createUrl("UploadFile/EditorUpload");?>" upImgExt="jpg,jpeg,gif,png" 
										upFlashUrl="<?php echo Yii::app()->createUrl("UploadFile/EditorUpload");?>" upFlashExt="swf"
										upMediaUrl="<?php echo Yii::app()->createUrl("UploadFile/EditorUpload");?>" upMediaExt:"avi"></textarea>				
						</div>
						<div class="unit">
							<label>费用介绍：</label>
							<textarea class="editor" name="dataForm[const_intro]" rows="80" cols="80"
										upLinkUrl="<?php echo Yii::app()->createUrl("UploadFile/EditorUpload");?>" upLinkExt="zip,rar,txt" 
										upImgUrl="<?php echo Yii::app()->createUrl("UploadFile/EditorUpload");?>" upImgExt="jpg,jpeg,gif,png" 
										upFlashUrl="<?php echo Yii::app()->createUrl("UploadFile/EditorUpload");?>" upFlashExt="swf"
										upMediaUrl="<?php echo Yii::app()->createUrl("UploadFile/EditorUpload");?>" upMediaExt:"avi"></textarea>				
						</div>
						<div class="unit">
							<label>注意事项：</label>
							<textarea class="editor" name="dataForm[attentions]" rows="80" cols="80"
										upLinkUrl="<?php echo Yii::app()->createUrl("UploadFile/EditorUpload");?>" upLinkExt="zip,rar,txt" 
										upImgUrl="<?php echo Yii::app()->createUrl("UploadFile/EditorUpload");?>" upImgExt="jpg,jpeg,gif,png" 
										upFlashUrl="<?php echo Yii::app()->createUrl("UploadFile/EditorUpload");?>" upFlashExt="swf"
										upMediaUrl="<?php echo Yii::app()->createUrl("UploadFile/EditorUpload");?>" upMediaExt:"avi"></textarea>				
						</div>
					</div>
				</div>
				<div class="tabsFooter">
					<div class="tabsFooterContent"></div>
				</div>
			</div>
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">提交</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
			</ul>
		</div>
	</form>
	
</div>
<?php $this->beginWidget('application.widget.tools.uploadjs', array('uploadCount'=>2)); ?>
<?php $this->endWidget(); ?>